home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Glitch Apple Disk Collection
/
2014.glitch.apple.collection.zip
/
indexed
/
IFRSIM.DSK
/
LOST IN LR.bas
< prev
next >
Wrap
BASIC Source File
|
2014-09-09
|
3KB
|
87 lines
1 S = 100:S1 = 0:UP = 24579
2 ST = 24576:O1 = ST +56:O2 = ST +58:I1 = ST +60:I2 = ST +61:MA = ST +12:X1 = ST +26:Y1 = ST +28:AL = ST +87
3 SH = ST +09:PL = ST +06:LI = ST +15:XY = ST +18:DF = ST +39:CH = ST +93:WS = ST +42:WW = ST +43:WN = ST +44:WE = ST +45
5 XC = 100:YC = 100:XF = 70:YF = 130
10 GOSUB 5000
11 A% = RND(1) *4:B% = RND(1) *50
12 MT = 15:GAS = 0:MI = 0:SE = 0:S1 = 0
13 POKE WN,0: POKE WE,0: POKE WS,0: POKE WW,0
14 ON A% GOTO 15,16,17,18
15 POKE WN,B%: GOTO 20
16 POKE WE,B%: GOTO 20
17 POKE WS,B%: GOTO 20
18 POKE WW,B%
20 VTAB 23: PRINT A%,B%: CALL ST
30 POKE O1,32: POKE O2,32: POKE I1,48: POKE I2,48
40 VTAB 22: PRINT "OBS TOP (LOC)=220 OBS BOTTOM = 004"
50 POKE X1, RND(1) *100 +50: POKE Y1, RND(1) *100 +60
81 POKE AL,16: POKE AL -3,32:MA% = 3
100 CALL UP
110 S1 = S1 +1: IF S1 >S THEN 300
200 GOTO 100
210 REM
220 REM
230 REM
300 S1 = 0:SE = SE +1: IF SE >59 THEN 4000:RR% = RND(1)
310 HTAB 1: VTAB 24: PRINT HO;":";;MI;":";SE;" GAS=";MT -GA;" MINUTES REMAINING";
320 X = PEEK(X1):Y = PEEK(Y1):DY = X -XC:DX = X +Y -200
321 IX = XF -X:IY = YF -Y
322 IF IX = 0 THEN 324
323 IT = IY/IX
324 T1 = ATN(IT)
325 T1% = 16 -10 *T1
327 IF X >XF THEN PF% = (176 -T1%) - PEEK(CH)
328 IF X <XF THEN PF% = (208 -T1%) - PEEK(CH)
329 IF PF% >64 THEN PF% = PF% -64: GOTO 329
330 POKE DF,PF%
335 IF DX < -5 THEN DX = -6
340 IF DX >5 THEN DX = 6
350 POKE O1,32 -DX: POKE I1,48
360 IF DY < -5 THEN DY = -6
370 IF DY >5 THEN DY = 6
380 POKE O2,32 +DY: POKE I2,48
385 IF PEEK(ALT) <MA% THEN 480
390 IF DX < -5 OR DX >5 THEN 100
400 IF X <85 OR X >105 THEN 100
410 SL = XC -X:DI = PEEK(ALT) +SL -16
420 IF DI < -6 THEN DI = -6
430 IF DI >6 THEN DI = 6
450 POKE I1,48 -DI
470 IF PEEK(AL) >2 THEN 100
480 HCOLOR= 2: CALL MA
490 HGR : CALL 24588
500 HCOLOR= 2: HPLOT 92,113
502 HPLOT TO 80,125
510 HPLOT TO 80,115
520 HPLOT TO 90,120
525 HCOLOR= 1
530 FOR X = 95 TO 150
540 Y = 205 -X
545 HPLOT X,Y
550 NEXT
560 FOR Y = 90 TO 150
565 X = 101: HPLOT X,Y
570 NEXT
580 FOR I = 1 TO 30
590 X = RND(1) *5:Y = RND(1) *5
595 HPLOT 65 +X,132 +Y: NEXT
600 VTAB 23: PRINT : PRINT : PRINT : PRINT "HIT RETURN TO FLY THIS AGAIN": PRINT "ANY OTHER KEY FOR MENU": GET A$
610 HOME : TEXT
615 IF ASC(A$) = 13 THEN 10
620 PRINT CHR$(4)
630 PRINT CHR$(4);"RUN MENU"
640 END
4000 SE = 0:MI = MI +1:GA = GA +1
4010 GOTO 100
5000 TEXT : HOME : PRINT "YOU ARE LOST NEAR LITTLE ROCK"
5010 PRINT : PRINT "YOUR BOTTOM OMNI IS 004 FROM LIT VOR"
5020 PRINT : PRINT "TOP OMNI IS LOCALIZER FOR RUNWAY 22"
5030 PRINT : PRINT "AT ADAMS FIELD. ADF IS TUNED TO LASKI"
5040 PRINT : PRINT "FIND THE AIRPORT AND LAND. YOU HAVE"
5050 PRINT : PRINT "FIFTEEN MINUTES. GOOD LUCK !"
5060 PRINT : PRINT : PRINT "COPYRIGHT 1982 BY VERNON BROWN"
5070 PRINT "2110 N 2ND ST"
5080 PRINT "CABOT ARK 72023 (501) 843 2988"
5090 PRINT
5100 PRINT "HIT ANY KEY WHEN READY TO FLY";
5110 GET A$: HOME : RETURN